﻿//Hero

package  {
	import flash.display.Sprite;
	import flash.events.Event;

	public class Hero extends Role {
		
		public function Hero(id:int) {
			
			Side = "GOOD";
			Id = id;
			speed = 3;
			
			graphics.beginFill(0x00ff00, 0.1);
			graphics.drawCircle(0, 0, field);
			graphics.beginFill(0x00ff00);
			graphics.drawCircle(0, 0, 5);
			graphics.moveTo( -5, 5);
			graphics.lineTo(5, 5);
			graphics.lineTo(0, 10);
			graphics.lineTo( -5, 5);
			graphics.endFill();
			
			addEventListener(Event.ENTER_FRAME, seekTarget);
		}
		
	}
	
}
